﻿namespace BM.Tools.WebControls.MForm.Controls.Additions
{
    /// <summary>
    /// The enumeration of different restrictions
    /// </summary>
    public enum RestrictionType
    {
        /// <summary>
        /// The exact length restriciton
        /// </summary>
        Length,

        /// <summary>
        /// The maximal length restriction
        /// </summary>
        MaxLength,

        /// <summary>
        /// The minimal length restriction
        /// </summary>
        MinLength,

        /// <summary>
        /// The maximal exclusive value restriction
        /// </summary>
        MaxExclusive,

        /// <summary>
        /// The minimal exclusive value restriction
        /// </summary>
        MinExclusive,

        /// <summary>
        /// The maximal inclusive value restriction
        /// </summary>
        MaxInclusive,

        /// <summary>
        /// The minimal inclusive value restriction
        /// </summary>
        MinInclusive,

        /// <summary>
        /// The regular expression restriction
        /// </summary>
        Pattern,

        /// <summary>
        /// The maximal fraction digits restriction
        /// </summary>
        FractionDigits,

        /// <summary>
        /// The maximal total digits restriction
        /// </summary>
        TotalDigits
    }
}
